package biz.almas.uycnr.crawler.entity;

import java.util.Date;

/**
 * @Description: 文档实体类
 * @Copyright: Copyright (c) 2015 XinJiang Almas Software All Rights Reserved
 * @Company: XinJiang Almas Software
 * @author Ansar786 Nov 19, 2015
 * @version V1.0
 * @history:
 * 
 */
public class CnrDocument implements Cloneable{

	private Long id;
	private int docId;
	private int siteId;
	private int docChannel;
	private String docAuthor;
	private String docSource;
	private String docKeyWords;
	private String cruser;
	private String operUser;
	private String docEditor;
	private int docType;
	private int docStatus;
	private int attachPic;
	private String docTitle;
	private String docContent;
	private String docHtmlCon;
	private String docHtmlContent;
	private String docPubHtmlCon;
	private int docWordsCount;
	private Date docFirstPubTime;
	private Date docPubTime;
	private Date docRelTime;
	private Date crtime;
	private Date operTime;
	private int docKind;
	private int docOutUpId;
	private int langId;
	private int status;

	/**
	 * 
	 */
	public CnrDocument() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCruser() {
		return cruser;
	}

	public void setCruser(String cruser) {
		this.cruser = cruser;
	}

	public String getDocKeyWords() {
		return docKeyWords;
	}

	public void setDocKeyWords(String docKeyWords) {
		this.docKeyWords = docKeyWords;
	}

	public String getDocSource() {
		return docSource;
	}

	public void setDocSource(String docSource) {
		this.docSource = docSource;
	}

	public Date getDocPubTime() {
		return docPubTime;
	}

	public void setDocPubTime(Date docPubTime) {
		this.docPubTime = docPubTime;
	}

	public Date getDocRelTime() {
		return docRelTime;
	}

	public void setDocRelTime(Date docRelTime) {
		this.docRelTime = docRelTime;
	}

	public Date getCrtime() {
		return crtime;
	}

	public void setCrtime(Date crtime) {
		this.crtime = crtime;
	}

	public String getDocHtmlCon() {
		return docHtmlCon;
	}

	public void setDocHtmlCon(String docHtmlCon) {
		this.docHtmlCon = docHtmlCon;
	}

	public String getDocHtmlContent() {
		return docHtmlContent;
	}

	public void setDocHtmlContent(String docHtmlContent) {
		this.docHtmlContent = docHtmlContent;
	}

	public String getOperUser() {
		return operUser;
	}

	public void setOperUser(String operUser) {
		this.operUser = operUser;
	}

	public Date getOperTime() {
		return operTime;
	}

	public void setOperTime(Date operTime) {
		this.operTime = operTime;
	}

	public String getDocContent() {
		return docContent;
	}

	public void setDocContent(String docContent) {
		this.docContent = docContent;
	}

	public String getDocPubHtmlCon() {
		return docPubHtmlCon;
	}

	public void setDocPubHtmlCon(String docPubHtmlCon) {
		this.docPubHtmlCon = docPubHtmlCon;
	}

	public String getDocTitle() {
		return docTitle;
	}

	public void setDocTitle(String docTitle) {
		this.docTitle = docTitle;
	}

	public String getDocEditor() {
		return docEditor;
	}

	public void setDocEditor(String docEditor) {
		this.docEditor = docEditor;
	}

	public String getDocAuthor() {
		return docAuthor;
	}

	public void setDocAuthor(String docAuthor) {
		this.docAuthor = docAuthor;
	}

	public Date getDocFirstPubTime() {
		return docFirstPubTime;
	}

	public void setDocFirstPubTime(Date docFirstPubTime) {
		this.docFirstPubTime = docFirstPubTime;
	}

	public int getDocOutUpId() {
		return docOutUpId;
	}

	public void setDocOutUpId(int docOutUpId) {
		this.docOutUpId = docOutUpId;
	}

	public int getDocChannel() {
		return docChannel;
	}

	public void setDocChannel(int docChannel) {
		this.docChannel = docChannel;
	}

	public int getAttachPic() {
		return attachPic;
	}

	public void setAttachPic(int attachPic) {
		this.attachPic = attachPic;
	}

	public int getDocStatus() {
		return docStatus;
	}

	public void setDocStatus(int docStatus) {
		this.docStatus = docStatus;
	}

	public int getDocId() {
		return docId;
	}

	public void setDocId(int docId) {
		this.docId = docId;
	}

	public int getDocWordsCount() {
		return docWordsCount;
	}

	public void setDocWordsCount(int docWordsCount) {
		this.docWordsCount = docWordsCount;
	}

	public int getDocKind() {
		return docKind;
	}

	public void setDocKind(int docKind) {
		this.docKind = docKind;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public int getDocType() {
		return docType;
	}

	public void setDocType(int docType) {
		this.docType = docType;
	}

	public int getLangId() {
		return langId;
	}

	public void setLangId(int langId) {
		this.langId = langId;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "CnrDocument [id=" + id + ", cruser=" + cruser
				+ ", docKeyWords=" + docKeyWords + ", docSource=" + docSource
				+ ", docPubTime=" + docPubTime + ", docRELTime=" + docRelTime
				+ ", crtime=" + crtime + ", docHtmlCon=" + docHtmlCon
				+ ", operUser=" + operUser + ", operTime=" + operTime
				+ ", docContent=" + docContent + ", docPubHtmlCon="
				+ docPubHtmlCon + ", docTitle=" + docTitle + ", docEditor="
				+ docEditor + ", docAuthor=" + docAuthor + ", docFirstPubTime="
				+ docFirstPubTime + ", docOutUpId=" + docOutUpId
				+ ", docChannel=" + docChannel + ", attachPic=" + attachPic
				+ ", docStatus=" + docStatus + ", docId=" + docId
				+ ", docWordsCount=" + docWordsCount + ", docKind=" + docKind
				+ ", siteId=" + siteId + ", docType=" + docType + ", langId="
				+ langId + ", status=" + status + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + docId;
		result = prime * result + langId;
		result = prime * result
				+ ((operTime == null) ? 0 : operTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CnrDocument other = (CnrDocument) obj;
		if (docId != other.docId)
			return false;
		if (langId != other.langId)
			return false;
		if (operTime == null) {
			if (other.operTime != null)
				return false;
		} else if (!operTime.equals(other.operTime))
			return false;
		return true;
	}

	public CnrDocument clone() {
		try {
			return (CnrDocument) super.clone();
		} catch (CloneNotSupportedException e) {
			return null;
		}
	}

}
